home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMNSHTMLButtonElement.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  134 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMNSHTMLButtonElement.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMNSHTMLButtonElement_h__
  6. #define __gen_nsIDOMNSHTMLButtonElement_h__
  7.  
  8.  
  9. #ifndef __gen_domstubs_h__
  10. #include "domstubs.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIDOMNSHTMLButtonElement */
  19. #define NS_IDOMNSHTMLBUTTONELEMENT_IID_STR "c914d7a4-63b3-4d40-943f-91a3c7ab0d4d"
  20.  
  21. #define NS_IDOMNSHTMLBUTTONELEMENT_IID \
  22.   {0xc914d7a4, 0x63b3, 0x4d40, \
  23.     { 0x94, 0x3f, 0x91, 0xa3, 0xc7, 0xab, 0x0d, 0x4d }}
  24.  
  25. class NS_NO_VTABLE nsIDOMNSHTMLButtonElement : public nsISupports {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMNSHTMLBUTTONELEMENT_IID)
  29.  
  30.   /* void blur (); */
  31.   NS_IMETHOD Blur(void) = 0;
  32.  
  33.   /* void focus (); */
  34.   NS_IMETHOD Focus(void) = 0;
  35.  
  36.   /* void click (); */
  37.   NS_IMETHOD Click(void) = 0;
  38.  
  39.   /* attribute DOMString type; */
  40.   NS_IMETHOD GetType(nsAString & aType) = 0;
  41.   NS_IMETHOD SetType(const nsAString & aType) = 0;
  42.  
  43. };
  44.  
  45. /* Use this macro when declaring classes that implement this interface. */
  46. #define NS_DECL_NSIDOMNSHTMLBUTTONELEMENT \
  47.   NS_IMETHOD Blur(void); \
  48.   NS_IMETHOD Focus(void); \
  49.   NS_IMETHOD Click(void); \
  50.   NS_IMETHOD GetType(nsAString & aType); \
  51.   NS_IMETHOD SetType(const nsAString & aType); 
  52.  
  53. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  54. #define NS_FORWARD_NSIDOMNSHTMLBUTTONELEMENT(_to) \
  55.   NS_IMETHOD Blur(void) { return _to Blur(); } \
  56.   NS_IMETHOD Focus(void) { return _to Focus(); } \
  57.   NS_IMETHOD Click(void) { return _to Click(); } \
  58.   NS_IMETHOD GetType(nsAString & aType) { return _to GetType(aType); } \
  59.   NS_IMETHOD SetType(const nsAString & aType) { return _to SetType(aType); } 
  60.  
  61. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  62. #define NS_FORWARD_SAFE_NSIDOMNSHTMLBUTTONELEMENT(_to) \
  63.   NS_IMETHOD Blur(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Blur(); } \
  64.   NS_IMETHOD Focus(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Focus(); } \
  65.   NS_IMETHOD Click(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Click(); } \
  66.   NS_IMETHOD GetType(nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
  67.   NS_IMETHOD SetType(const nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetType(aType); } 
  68.  
  69. #if 0
  70. /* Use the code below as a template for the implementation class for this interface. */
  71.  
  72. /* Header file */
  73. class nsDOMNSHTMLButtonElement : public nsIDOMNSHTMLButtonElement
  74. {
  75. public:
  76.   NS_DECL_ISUPPORTS
  77.   NS_DECL_NSIDOMNSHTMLBUTTONELEMENT
  78.  
  79.   nsDOMNSHTMLButtonElement();
  80.  
  81. private:
  82.   ~nsDOMNSHTMLButtonElement();
  83.  
  84. protected:
  85.   /* additional members */
  86. };
  87.  
  88. /* Implementation file */
  89. NS_IMPL_ISUPPORTS1(nsDOMNSHTMLButtonElement, nsIDOMNSHTMLButtonElement)
  90.  
  91. nsDOMNSHTMLButtonElement::nsDOMNSHTMLButtonElement()
  92. {
  93.   /* member initializers and constructor code */
  94. }
  95.  
  96. nsDOMNSHTMLButtonElement::~nsDOMNSHTMLButtonElement()
  97. {
  98.   /* destructor code */
  99. }
  100.  
  101. /* void blur (); */
  102. NS_IMETHODIMP nsDOMNSHTMLButtonElement::Blur()
  103. {
  104.     return NS_ERROR_NOT_IMPLEMENTED;
  105. }
  106.  
  107. /* void focus (); */
  108. NS_IMETHODIMP nsDOMNSHTMLButtonElement::Focus()
  109. {
  110.     return NS_ERROR_NOT_IMPLEMENTED;
  111. }
  112.  
  113. /* void click (); */
  114. NS_IMETHODIMP nsDOMNSHTMLButtonElement::Click()
  115. {
  116.     return NS_ERROR_NOT_IMPLEMENTED;
  117. }
  118.  
  119. /* attribute DOMString type; */
  120. NS_IMETHODIMP nsDOMNSHTMLButtonElement::GetType(nsAString & aType)
  121. {
  122.     return NS_ERROR_NOT_IMPLEMENTED;
  123. }
  124. NS_IMETHODIMP nsDOMNSHTMLButtonElement::SetType(const nsAString & aType)
  125. {
  126.     return NS_ERROR_NOT_IMPLEMENTED;
  127. }
  128.  
  129. /* End of implementation class template. */
  130. #endif
  131.  
  132.  
  133. #endif /* __gen_nsIDOMNSHTMLButtonElement_h__ */
  134.